home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / fortran / toolpack.000 / toolpack / toolpack1.2 / scriptsource / discard.s < prev    next >
Encoding:
Text File  |  1993-10-04  |  692 b   |  30 lines

  1. #! /bin/csh
  2. #  discard is a utility csh script to remove _.TOOLPACK and IST.CMD (if
  3. #  they exist), and to give the user the option of removing other files
  4. #  whose names begin with "_." (presumably created by Toolpack).
  5. #
  6. #
  7. #  Invocation:
  8. #
  9. #  discard
  10. #
  11. if ( -e _.TOOLPACK == 1 ) then
  12.    /bin/rm -r _.TOOLPACK
  13. echo The directory _.TOOLPACK created by Toolpack has been removed.
  14.    echo ""
  15. endif
  16. #
  17. if ( -e IST.CMD == 1 ) then
  18.    /bin/rm IST.CMD
  19. echo The file IST.CMD created by Toolpack has been removed.
  20.    echo ""
  21. endif
  22. #
  23. if ( `TOOLPACKPATH/toolpack1.2/util/Tcrfil *` == 0 ) then
  24.    exit
  25. else
  26. echo 'The following files were created by Toolpack.  Remove with "y":'
  27.    /bin/rm -i _.*
  28. endif
  29. #
  30.